<?php

namespace app\controllers;

use Phalcon\Mvc\Controller;
use Phalcon\Mvc\View;

class ControllerBase extends Controller
{
    public function beforeExecuteRoute($di)
    {
        $this->view->disableLevel(View::LEVEL_MAIN_LAYOUT);
    }

    public function afterExecuteRoute($di)
    {
        // 不缓存
        header("Cache-Control: no-cache");
    }
}
